﻿using UnityEngine;

namespace Combat
{
    [CreateAssetMenu(fileName = "New Bullet", menuName = "Data/Bullet", order = 0)]
    public class BulletData : ScriptableObject
    {
        public Color Color => color;
        public Gradient TrailColor => trailColor;

        public float MoveSpeed => moveSpeed;
        public int Damage => damage;
        public AudioClip HitSound => hitSound;
        public bool UseTrail => useTrail;
        public bool Penetrate => penetrate;

        [SerializeField] private Color color;
        [SerializeField] private Gradient trailColor;
        [SerializeField] private float moveSpeed = 5f;
        [SerializeField] private int damage = 1;
        [SerializeField] private AudioClip hitSound;
        [SerializeField] private bool useTrail;
        [SerializeField] private bool penetrate;
    }
}